﻿// <copyright file="MapInfoPolygon.cs" company="QUT">
//     Copyright (c) Ninety Nine Percent. All rights reserved.
// </copyright>

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace Qut.GenerateKml.Data
{
    /// <summary>
    /// MapInfo Polygon class (represents a polygon).
    /// </summary>
    public class MapInfoPolygon
    {
        /// <summary>
        /// The coordinates.
        /// </summary>
        private List<PointF> coordinates;

        /// <summary>
        /// Initializes a new instance of the <see cref="MapInfoPolygon"/> class.
        /// </summary>
        public MapInfoPolygon()
        {
            this.coordinates = new List<PointF>();
        }

        /// <summary>
        /// Adds the point.
        /// </summary>
        /// <param name="point">The point.</param>
        public void AddPoint(PointF point)
        {
            this.coordinates.Add(point);
        }

        /// <summary>
        /// Gets the coordinates.
        /// </summary>
        /// <returns>Returns the number of coordinates.</returns>
        public List<PointF> GetCoordinates()
        {
            return this.coordinates;
        }
    }
}
